﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace VisualWix
{
    /// <summary>
    /// Interaction logic for Folder.xaml
    /// </summary>
    public partial class Folder : Window
    {
        public Folder()
        {
            InitializeComponent();
            TextBoxFolderName.Focus();
        }

        public string FolderName { get; private set; }

        private void ButtonOk_Click_1(object sender, RoutedEventArgs e)
        {
            FolderName = TextBoxFolderName.Text;
            if (!string.IsNullOrWhiteSpace(FolderName))
            {
                this.DialogResult = true;
                this.Hide();
            }
        }

        private void ButtonCancel_Click_1(object sender, RoutedEventArgs e)
        {
            FolderName = string.Empty;
        }
    }
}
